<?php
  session_start();
  
  $_SESSION = array();
      
  if (isset($_COOKIE[session_name()])) {
    setcookie(session_name(), null, time() - 3600, "/");
  }
  
  if (isset($_COOKIE["msb_unidade"])) {
    setcookie("msb_unidade", null, time() - 3600);
  }

  session_destroy();
  
  header("location: index.php");
?>